from langchain_community.document_loaders import TextLoader

loader = TextLoader("../other/xiaomi.txt", encoding="utf-8")

document = loader.load()

# print(len(document))

print(document)

##################

# from langchain_community.document_loaders import CSVLoader
#
# loader = CSVLoader("../other/student.csv")
#
# document = loader.load()
#
# print(len(document))
#
# for content in document:
#     print(content)

###################

# from langchain_community.document_loaders import PyPDFLoader
#
# loader = PyPDFLoader("../other/temp.pdf")
#
# document = loader.load()
#
# for content in document:
#     print(content)
